//文件上传服务层
app.service('uploadService',function($http) {
	
	this.upload = function() {
		var formData = new FormData();	//html5里面的用于文件上传使用
		formData.append('file', file.files[0]);	//file文件上传的框的name
		alert("uploadService经过了");
		return $http({
					url:'../upload.do',
					method:'post',
					data:formData,
					headers:{'Content-Type': undefined},	
					transformRequest: angular.identity	
			   });
	}
})